package com.learn.datainjector;

import java.io.IOException;
import java.io.InputStream;

public class TextInjectDemo {
	public static void main(String[] args) throws Exception {
		InputStream in = TextInjector.class.getClassLoader().getResourceAsStream("./datafile");
		byte[] data = new byte[in.available()];
		in.read(data);
		in.close();
		String text = new String(data);
		TextInjector injector = new TextInjector();
		System.out.println(injector.injector(text, A.class, "obj"));
	}
}
